/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.AccountConstants;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.SoapParseException;
/*    */ import com.zimbra.cs.client.LmcContact;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcSearchGalRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mName;
/*    */   
/* 33 */   public void setName(String n) { this.mName = n; }
/*    */   
/* 35 */   public String getName() { return this.mName; }
/*    */   
/*    */   protected Element getRequestXML() throws LmcSoapClientException {
/* 38 */     Element request = DocumentHelper.createElement(AccountConstants.SEARCH_GAL_REQUEST);
/* 39 */     DomUtil.add(request, "name", this.mName);
/* 40 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws SoapParseException, ServiceException, LmcSoapClientException
/*    */   {
/* 46 */     LmcContact[] contacts = parseContactArray(responseXML);
/* 47 */     LmcSearchGalResponse sgResp = new LmcSearchGalResponse();
/* 48 */     sgResp.setContacts(contacts);
/* 49 */     return sgResp;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcSearchGalRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */